/**
 * Copyright (c) 2005-2012 https://github.com/zhangkaitao
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.kaoshi.myweb.web.service;

import com.kaoshi.myweb.web.entity.Sample;
import com.kaoshi.myweb.web.repository.SampleRepository;
import com.kaoshi.myweb.web.service.common.GenericService;

/**
 * <p>
 * User: Zhang Kaitao
 * <p>
 * Date: 13-2-4 下午3:01
 * <p>
 * Version: 1.0
 */
//@Service
public class SampleService extends GenericService<Sample, Long> {

	public SampleRepository getSampleRepository() {
		return (SampleRepository) mapper;
	}

	public Sample findByName(String name) {
		return getSampleRepository().findByName(name);
	}

}
